package cn.swpu.blog.dao;

import cn.swpu.blog.entity.BlogCategoryInfo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface BlogCategoryInfoMapper {
    int deleteByPrimaryKey(Integer blogCategoryId);

    int insert(BlogCategoryInfo record);

    BlogCategoryInfo selectByPrimaryKey(Integer blogCategoryId);

    List<BlogCategoryInfo> selectAll();

    int updateByPrimaryKey(BlogCategoryInfo record);

    /**
     * 通过blogId查询出对应的唯一CategoryID
     * @param blogId
     * @return
     */
    int selectByBlogId2CategoryId(Integer blogId);
}